package com.jic.member.controller.manage;

import com.jic.common.base.vo.RestResult;
import com.jic.member.api.rest.MemberUserRestApi;
import com.jic.member.request.MememberUserRequest;
import com.jic.member.service.MememberUserInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author: zxl
 * @date: 2020-01-09
 * @remark: h5接口 会员信息
 */
@RestController
@RequestMapping("/apiMemberInfo")
@Api(value = "APi-会员信息",tags = "APi-会员信息")
public class ApiMemberInfoController implements MemberUserRestApi {

    @Resource
    private MememberUserInfoService memberUserInofo;

    @ApiOperation(value = "修改用户信息")
    @ResponseBody
    @PostMapping("/updateMemberInfo")
    @Override
    public RestResult<String> updateMemberInfo(@RequestBody MememberUserRequest mememberUserRequest) {
        return memberUserInofo.updateMemberInfo(mememberUserRequest);
    }
}
